@(message: String, f : Form[Orders])

@import helper._

@implicitFieldConstructor = @{ FieldConstructor(simpleInput.f) } 

@main(message) {

  <h2>@message</h2>
  <fieldset style="width: 500px;">
    @helper.form(routes.OrderController.addOrder) {
      @inputText(f("customer.id"), '_label -> "ID Customer")
      @inputText(f("date"), '_label -> "Date")
      @inputText(f("product.id"), '_label -> "ID Product")
      @inputText(f("total"), '_label -> "Total")
      <fieldset style="margin-top: 10px;">
          <input type="submit" value="Insert" />
          <a href='@routes.OrderController.index()'>Cancel and go Orders</a>
      </fieldset>
    }        
  </fieldset>
  
}

